package com.sky.cqculture.pojo;

import java.util.Date;

public class Favorite {
    private Integer id;           // 收藏ID
    private Integer heritageId;   // 非遗项目ID
    private Integer userId;       // 用户ID
    private Integer status;       // 收藏状态（1：收藏，0：取消收藏）
    private Date createTime;      // 收藏时间
    private Date updateTime;      // 更新时间

    public Favorite() {
    }

    public Favorite(Integer id, Integer heritageId, Integer userId, Integer status, Date createTime, Date updateTime) {
        this.id = id;
        this.heritageId = heritageId;
        this.userId = userId;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    // getter和setter方法
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public Integer getHeritageId() { return heritageId; }
    public void setHeritageId(Integer heritageId) { this.heritageId = heritageId; }
    public Integer getUserId() { return userId; }
    public void setUserId(Integer userId) { this.userId = userId; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
    public Date getUpdateTime() { return updateTime; }
    public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
}